package com.lqian.blog.service;

import com.lqian.blog.dao.pojo.SysUser;
import com.lqian.blog.vo.Result;
import com.lqian.blog.vo.params.LoginParams;


public interface LoginService {

    /**
     * @Author Melody_LQ
     * @Date 2021/8/2 11:08
     * @Description 登录
     * @Param @param loginParams:
     * @Return com.lqian.blog.vo.Result
     * @Since version-1.0
     */
    Result login(LoginParams loginParams);

    /**
     * @Author Melody_LQ
     * @Date 2021/9/2 23:20
     * @Description 退出登录
     * @Param @param token:
     * @Return com.lqian.blog.vo.Result
     * @Since version-1.0
     */

    /**
     * 退出登录
     * @param token
     * @return
     */
    Result logout(String token);

    /**
     * 注册用户
     * @param loginParam
     * @return
     */
    Result register(LoginParams loginParam);

    /**
     * 检查登录用户token
     * @param token
     * @return
     */
    SysUser checkToken(String token);
}
